package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.WholeHouseCase;
import com.ecoolex.ying.space.entity.WholeHouseCaseExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface WholeHouseCaseMapper {
    long countByExample(WholeHouseCaseExample example);

    int deleteByExample(WholeHouseCaseExample example);

    int deleteByPrimaryKey(Integer caseId);

    int insert(WholeHouseCase record);

    int insertSelective(@Param("record") WholeHouseCase record, @Param("selective") WholeHouseCase.Column ... selective);

    WholeHouseCase selectOneByExample(WholeHouseCaseExample example);

    List<WholeHouseCase> selectByExample(WholeHouseCaseExample example);

    WholeHouseCase selectByPrimaryKey(Integer caseId);

    WholeHouseCase selectByPrimaryKeyWithLogicalDelete(@Param("caseId") Integer caseId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") WholeHouseCase record, @Param("example") WholeHouseCaseExample example, @Param("selective") WholeHouseCase.Column ... selective);

    int updateByExample(@Param("record") WholeHouseCase record, @Param("example") WholeHouseCaseExample example);

    int updateByPrimaryKeySelective(@Param("record") WholeHouseCase record, @Param("selective") WholeHouseCase.Column ... selective);

    int updateByPrimaryKey(WholeHouseCase record);

    int batchInsert(@Param("list") List<WholeHouseCase> list);

    int batchInsertSelective(@Param("list") List<WholeHouseCase> list, @Param("selective") WholeHouseCase.Column ... selective);

    int logicalDeleteByExample(@Param("example") WholeHouseCaseExample example);

    int logicalDeleteByPrimaryKey(Integer caseId);
}